package com.ruoyi.applet.appletShoppingCart.mapper;

import com.ruoyi.applet.appletShoppingCart.domain.AppletShoppingCart;
import com.ruoyi.applet.entity.ShoppingCartApplet;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 购物车Mapper接口
 * @author ruoyi
 * @date 2024-11-28
 */
public interface AppletShoppingCartMapper {
    
    /**
     * 查询购物车
     * @param id 购物车主键
     * @return 购物车
     */
    public AppletShoppingCart selectAppletShoppingCartById(Long id);
    
    /**
     * 查询购物车列表
     * @param appletShoppingCart 购物车
     * @return 购物车集合
     */
    public List<AppletShoppingCart> selectAppletShoppingCartList(AppletShoppingCart appletShoppingCart);
    
    /**
     * 新增购物车
     * @param appletShoppingCart 购物车
     * @return 结果
     */
    public int insertAppletShoppingCart(AppletShoppingCart appletShoppingCart);
    
    /**
     * 修改购物车
     * @param appletShoppingCart 购物车
     * @return 结果
     */
    public int updateAppletShoppingCart(AppletShoppingCart appletShoppingCart);
    
    /**
     * 删除购物车
     * @param id 购物车主键
     * @return 结果
     */
    public int deleteAppletShoppingCartById(Long id);
    
    /**
     * 批量删除购物车
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAppletShoppingCartByIds(String[] ids);
    
    
    
    
    
    List<AppletShoppingCart> selectShoppingCartListApplet(@Param("shoppingCartApplet") ShoppingCartApplet shoppingCartApplet, @Param("pageSize") Integer pageSize, @Param("start") int start);
    int selectShoppingCartListAppletCount(ShoppingCartApplet shoppingCartApplet);
    
    
    
    AppletShoppingCart selectAppletShoppingCartListBySole(AppletShoppingCart appletShoppingCart);
    
}
